UFUNCTION
. Alternatively, you can consider third party libraries such as the Redpoint EOS SDK.
Checkout our example integration.
.Build.cs
file.
EOS_Platform_Create
with the project credentials from the Epic Games Dev Portal
For security, we recommend reading these credentials from a config file such as EosConfig.ini
and add it to your .gitignore
EOS_HPlatform
to call EOS_Platform_Tick
. Call this during the Tick
node in one of your Pawns.
EOS_Auth_Login
function. Additionally, we create a function to get the Exchange Code
from
the Epic Games Launcher. This will only be used when you call this function with the EOS_ELoginCredentialType::EOS_LCT_ExchangeCode
option.
EOS_ELoginCredentialType::EOS_LCT_ExchangeCode
option needs to happen at the start
of the game. The code which is given by the Epic Games Launcher is a short-lived token and we need to access it quickly.
UEOSManager
class and do the following.
Initialize()
at the start of your game.Tick()
every frame or at another rate.SignInWithEpic()